package com.rush.manageepac.service.intf;

import com.rush.manageepac.entity.Psm;
import com.rush.manageepac.vo.PageBean;
import com.rush.manageepac.vo.R;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface PsmService {
    //增加
    R save(Psm psm);
    //修改
    R update(Psm psm);
    //删除
    R delete(int id);
    //查询总条数 带条件*
    PageBean selectPage(String name, int page, int limit);

    R delIds(int[] ids);

    List<Psm> all();

    R upload(MultipartFile file) throws IOException;
}
